const setRoleList = (data) => {
  let arr = []
  for (let i = 0; i < data.length; i++) {
    let checkVal = data[i].checkVal
    let id = data[i].id
    if (checkVal.length !== 0) {
      arr.push(id)
    }
    for (let j = 0; j < checkVal.length; j++) {
      arr.push(checkVal[j])
    }
  }
  console.log(arr)
  return arr
}

export default setRoleList
